package org.farm2.base.event;

import lombok.Data;

/**
 * 定义一个事件
 */
@Data
public class F2Event {
    F2EObject obj;
    F2EAction action;

    public F2Event(F2EObject obj, F2EAction action) {
        this.obj = obj;
        this.action = action;
    }

    public String toString() {
        return obj.getType().getTitle() + "_" + action.getType().getTitle();
    }
}
